package com.lfy.modules.safety.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lfy.modules.blog.domain.group.RemoveGroup;
import com.lfy.modules.blog.domain.group.SaveGroup;
import com.lfy.modules.blog.domain.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.Date;
@Data
public class BlackDTO {
    /**
     *
     */
    @Null(message = "id必须为空", groups = {SaveGroup.class})
    @NotNull(message = "id不能为空", groups = {RemoveGroup.class})
    private Long id;

    /**
     *
     */
    @NotBlank(message = "ip不能为空", groups = {SaveGroup.class})
    private String ip;



    /**
     * 封禁原因：0-限流
     */
    private Integer because;
    private String remarks;


}
